<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<title>report right</title>
		<link id="editCss" rel="stylesheet" type="text/css"
			href="<%=basePath%>css/style.css" />
<link id="editCss" rel="stylesheet" type="text/css" href="<%=path%>/css/right.css" />
		<script type="text/javascript"
			src="<%=basePath%>js/permission_dtree.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/base.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/popUpBase.js"></script>
	</head>
	<body>
		<form method="post" action="<%=path %>/zebra/customer/favorite/FavoriteAction?method=addFavorite">
		<input type="hidden" name="userId" id="userId" value="${currUser.userName}"/>
		<input type="hidden" name="monitorTypeId" id="monitorTypeId" value="${args.monitorTypeId}"/>
		<input type="hidden" name="websiteId" id="websiteId" value="${args.websiteId}"/>
		
			<div class="crumbs">
				当前位置：首页 &gt; 监控列表&gt; 收藏站点&gt; 维护关键字信息
			</div>
			<div class="search ctitle">
				<div class="tab">
					<span class="right"></span>
					<span class="font-blue14pxb">未关注的关键字:</span>
				</div>
			</div>
			<div class="tableBox fwidth">
			<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
					<c:if test="${!empty keywordListIsNot}">
					<tr>
					<c:forEach items="${keywordListIsNot}" var="keyword" varStatus="index">
						<c:if test="${index.count % 5 == 0}"></tr><tr></c:if>
						<td>
							${keyword.text}<input type="checkbox" name="keywordIds" id="keywordIds" value="${keyword.id}"/>
						</td>
					</c:forEach>
					</tr>
					</c:if>
					<tr class="footer">
						<td colspan="5" align="center" >
							<input type="submit" name="save" value="保存" class="button" />
						</td>
					</tr>
				</table>
				</div>
		</form>
			<br/><br/><br/><br/><br/>
			<div class="search ctitle">
			<div class="tab">
					<span class="right"></span>
					<span class="font-blue14pxb">已关注的关键字</span>
				</div>
			</div>
			<div class="tableBox fwidth">
					<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
						<tr>
							<th>序号</th>
							<th>关键字</th>
							<th>操作</th>
						</tr>
						<c:if test="${!empty keywordList }">
						<c:forEach items="${keywordList}" var="keyword1" varStatus="index">
						<tr>
							<td>${index.count}</td>
							<td>${keyword1.text}</td>
							<td>
								<a href="<%=path %>/zebra/customer/favorite/FavoriteAction?method=delKeyword&monitorTypeId=${args.monitorTypeId}&id=${args.id}&keywordId=${keyword1.id}&websiteId=${args.websiteId}">
									<img src="<%=path%>/images/icon/list_del.gif" />取消
								</a> 
							</td>
						</tr>
						</c:forEach>
						</c:if>
					</table>
				</div>
			</div>
	</body>
</html>